package com.demo.entity.Vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class VtePreventiveDoctorAdviceVo implements Serializable {
    @ApiModelProperty(value = "医嘱处理编号")
    @TableId(value = "doctor_advice_id", type = IdType.AUTO)
    private Integer doctorAdviceId;

    @ApiModelProperty(value = "vte诊断序列号")
    @TableField("vte_preventive_id")
    @NotNull(message = "vte诊断序列号不能为空")
    private Integer vtePreventiveId;

    @ApiModelProperty(value = "医嘱内容jeson对象存储")
    @TableField("advise_cotent")
    @NotBlank(message = "医嘱内容不能为空")
    private String adviseCotent;

    @ApiModelProperty(value = "医嘱类型1药物2物理")
    @TableField("advise_type")
    @NotNull(message = "医嘱类型不能为空")
    private Integer adviseType;

    @ApiModelProperty(value = "医嘱时限  1.长期  2.临时")
    @TableField("validity_length")
    @NotNull(message = "医嘱时限不能为空")
    private Integer validityLength;

    @ApiModelProperty(value = "停止人")
    @TableField("stoped_user_id")
    private Integer stopedUserId;

    @ApiModelProperty(value = "停止时间")
    @TableField("stoped_user_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date stopedUserTime;

    @ApiModelProperty(value = "作废时间")
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deletedTime;

    @ApiModelProperty(value = "作废人ID号")
    @TableField("deleted_user_id")
    private Integer deletedUserId;

    @ApiModelProperty(value = "创建时间&开具时间")
    @TableField(value = "created_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID号")
    @TableField("created_user_id")
    @NotNull(message = "创建人ID不能为空")
    private Integer createdUserId;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_time",fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    @ApiModelProperty(value = "更新人ID号")
    @TableField("updated_user_id")
    private Integer updatedUserId;

    @ApiModelProperty(value = "医嘱状态 1.未停止  2.已停止  默认为：1")
    @TableField(value = "status")
    private Integer status;

    @ApiModelProperty(value = "患者ID")
    @TableField(value = "patient_id")
    private Integer patientId;


    @ApiModelProperty(value = "推荐剂量")
    @TableField("recommend_dosage")
    @NotBlank(message = "推进剂量不能为空")
    private String recommendDosage;

    @ApiModelProperty(value = "单位")
    @TableField("unit")
    @NotBlank(message = "单位不能为空")
    private String unit;

    @ApiModelProperty(value = "推荐用法")
    @TableField("way")
    @NotBlank(message = "推荐用法不能为空")
    private String way;

    @ApiModelProperty(value = "推荐频率")
    @TableField("way_gap")
    @NotBlank(message = "推荐频率不能为空")
    private String wayGap;

    //医嘱药物ID
    private Integer drugId;
    //药物名
    private String drugName;
    //开单医生
    private String creatUserName;
    //停止医生
    private String stopedUserName;





}
